package com.ctibook.booksystem.dao.bookcatalog;

import java.util.List;

import com.ctibook.booksystem.model.bookcatalog.BookInfoCategory;

public interface BookInfoCategoryDao {

	public void addOrUpdateBookInfoCategory(BookInfoCategory bookInfoCategory);
	
	public void deleteBookInfoCategory(BookInfoCategory bookInfoCategory);
	
	public BookInfoCategory getById(String id);
	
	public BookInfoCategory getTopCategpryByName(String name);
	
	public List<BookInfoCategory> getAllTopCategory();
	
	public BookInfoCategory getChildCategoryByNameAndParent(String category2,String parentId);
	
	public List<BookInfoCategory> getChildrenCategoryByParentId(String parentId);
}
